home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / hf^k-2.dms / in.adf / MUIClass.Lha / Include / Classes / TWiMUI / Gauge.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-06  |  1.6 KB  |  57 lines

  1. //
  2. //  $VER: Gauge.h       1.2 (02 Sep 1996)
  3. //
  4. //    c 1996 Thomas Wilhelmi
  5. //
  6. //
  7. // Address : Taunusstrasse 14
  8. //           61138 Niederdorfelden
  9. //           Germany
  10. //
  11. //  E-Mail : willi@twi.rhein-main.de
  12. //
  13. //   Phone : +49 (0)6101 531060
  14. //   Fax   : +49 (0)6101 531061
  15. //
  16. //
  17. //  $HISTORY:
  18. //
  19. //  16 Jun 1996 :   1.0 : first public Release
  20. //
  21. //  02 Sep 1996 :   1.2 : Neu:
  22. //                        - ClassNum() für Exception-Handling.
  23. //                        Änderungen
  24. //                        - Parameter des Copy-Konstruktor als 'const'-Parameter definiert
  25. //
  26.  
  27. #ifndef CPP_TWIMUI_GAUGE_H
  28. #define CPP_TWIMUI_GAUGE_H
  29.  
  30. #ifndef CPP_TWIMUI_AREA_H
  31. #include <classes/twimui/area.h>
  32. #endif
  33.  
  34. class MUIGauge : public MUIArea
  35.     {
  36.     protected:
  37.         virtual const ULONG ClassNum() const;
  38.         MUIGauge(STRPTR cl) : MUIArea(cl) { };
  39.     public:
  40.         MUIGauge(const struct TagItem *t) : MUIArea(MUIC_Gauge) { init(t); };
  41.         MUIGauge(const Tag, ...);
  42.         MUIGauge() : MUIArea(MUIC_Gauge) { };
  43.         MUIGauge(const MUIGauge &);
  44.         virtual ~MUIGauge();
  45.         MUIGauge &operator= (const MUIGauge &);
  46.         void Current(const LONG p) { set(MUIA_Gauge_Current,(ULONG)p); };
  47.         LONG Current() const { return((LONG)get(MUIA_Gauge_Current,0L)); };
  48.         void Divide(const LONG p) { set(MUIA_Gauge_Divide,(ULONG)p); };
  49.         LONG Divide() const { return((LONG)get(MUIA_Gauge_Divide,0L)); };
  50.         void InfoText(const STRPTR p) { set(MUIA_Gauge_InfoText,(ULONG)p); };
  51.         STRPTR InfoText() const { return((STRPTR)get(MUIA_Gauge_InfoText,NULL)); };
  52.         void Max(const LONG p) { set(MUIA_Gauge_Max,(ULONG)p); };
  53.         LONG Max() const { return((LONG)get(MUIA_Gauge_Max,0L)); };
  54.     };
  55.  
  56. #endif
  57.